import Layout from '@/layout'

const distributorGoodsRouter = {
  path: '/distributor/goods',
  component: Layout,
  redirect: 'noRedirect',
  alwaysShow: true,
  name: 'DistributorGoods',
  meta: {
    title: '货源新增商品',
    roles: ['distributor', 'admin']
  },
  children: [
    {
      path: 'new',
      component: () => import('@/views/distributor/goods/new-list'),
      name: 'DistributorGoodsNew',
      meta: { title: '货源新增商品(TBD)', noCache: false }
    }
  ]
}

export default distributorGoodsRouter
